
// UART_DATA_OFFLOAD: Option to push data out to PC for further data analysis
#define UART_DATA_OFFLOAD
//#define CW_TEST_MODE
//#define BYPASS_HOST_INTERFACE
//#define GLOSSY_PER_TEST
//#define GLOSSY_ANCHOR_SYNC_TEST

// FAST_RANGING_CONFIG: 6.8 Mbps
// LONG_RANGING_CONFIG: 110 Kbps
#define FAST_RANGING_CONFIG

#ifdef LONG_RANGING_CONFIG
	#define DW1000_PREAMBLE_LENGTH DWT_PLEN_4096
	#define DW1000_PAC_SIZE        DWT_PAC64
	#define DW1000_DATA_RATE       DWT_BR_110K
	#define DW1000_SMART_PWR_EN    0
	#define DW1000_SFD_TO          (4096+64+1)
	#define RANGING_BROADCASTS_PERIOD_US 10000
	#define RANGING_LISTENING_WINDOW_US  50000
	#define RANGING_LISTENING_WINDOW_PADDING_US 2000
#endif
#ifdef FAST_RANGING_CONFIG
	#define DW1000_PREAMBLE_LENGTH       DWT_PLEN_64
	#define DW1000_PAC_SIZE              DWT_PAC8
	#define DW1000_DATA_RATE             DWT_BR_6M8
	#define DW1000_SMART_PWR_EN          1
	#define DW1000_SFD_TO                (64+8+1)
	#define RANGING_BROADCASTS_PERIOD_US 1000
	#define RANGING_LISTENING_WINDOW_US  8000
	#define RANGING_LISTENING_WINDOW_PADDING_US 1100
#endif
